import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/Home.vue'
import TaskHall from '@/views/TaskHall.vue'
import ModelMonitorView from "@/views/ModelMonitorView.vue";
import JoinFederation from '@/views/JoinFederation.vue'
import ParameterConfig from '../views/ParameterConfig.vue'

const routes = [
    {
        path: '/',
        name: 'Home',
        component: Home
    },
    {
        path: '/tasks',
        name: 'TaskHall',
        component: TaskHall
    },
    {
        path: '/monitor',
        name: 'ModelMonitor',
        component: ModelMonitorView
    },
    {
        path: '/join',
        name: 'JoinFederation',
        component: JoinFederation
    },
    {
        path: '/config',
        name: 'config',
        component: ParameterConfig
    }

]

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes
})



export default router